package demo.model;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Getter @Setter @AllArgsConstructor @NoArgsConstructor @ToString
@JsonInclude(Include.NON_NULL)
public class AccountResponseModel{
	private String serviceId;
	private List<Account> accounts;
	private String errorMessage;
	
	public AccountResponseModel(String serviceId, List<Account> accounts) {
		this.serviceId = serviceId;
		this.accounts = accounts;
	}
	
	public AccountResponseModel(String errorMessage) {
		this.errorMessage = errorMessage;
	}	
}